<?php
header("content-type:text/html;charset=utf-8");
try{

   $pdo = new PDO("mysql:host=localhost;dbname=boke","root","root"); 

 }

 catch(PDOException $e){

 	echo "数据库连接失败:".$e->getMessage();
 	exit;

 }

  $re=$pdo->query("select * from article_content");
  
  
  while($row=$re->fetch(PDO::FETCH_ASSOC)){
  	  print_r($row);

  }

  
 //  $res=$re->fetchAll(PDO::FETCH_ASSOC);

 // var_dump($res);

?>